﻿namespace Digitalmes.Application.Mes;

/// <summary>
/// 设备警报信息查询服务
/// </summary>
public interface IEquipAlarmItemQueryService
{
    /// <summary>
    /// 获取全部的警报项。
    /// </summary>
    /// <returns></returns>
    Task<List<EquipAlarmItem>> GetAllAsync();

    /// <summary>
    /// 通过编号集合获取警报设置项集合
    /// </summary>
    /// <param name="noList">编号集合</param>
    /// <returns></returns>
    Task<List<EquipAlarmItem>> GetByNoAsync(IEnumerable<int> noList);

    /// <summary>
    /// 通过编号集合获取警报设置项集合
    /// </summary>
    /// <param name="equipName">设备名称</param>
    /// <param name="noList">编号集合</param>
    /// <returns></returns>
    Task<List<EquipAlarmItem>> GetByNoAsync(string? equipName, IEnumerable<int> noList);

    /// <summary>
    /// 清除警报项目。
    /// </summary>
    void Clear();
}
